package top.baselitch.sample.beans;

import top.baselitch.liteorm.annotation.FieldNotNull;
import top.baselitch.liteorm.annotation.FieldAutoIncrement;
import top.baselitch.liteorm.annotation.FieldUnique;
import top.baselitch.liteorm.annotation.Table;
import top.baselitch.liteorm.annotation.TableField;
import top.baselitch.liteorm.annotation.TablePrimaryKey;

@Table("users")
public class Users {
    @TableField("_id")
    @TablePrimaryKey
    @FieldAutoIncrement
    private int id;
    @TableField("name")
    @FieldNotNull
    private String name;
    @TableField("email")
    @FieldUnique
    @FieldNotNull
    private String email;
    @TableField("passwd")
    @FieldNotNull
    private String passwd;
    public int getId() {
        return id;
    }

    public Users setId(int id) {
        this.id = id;
        return this;
    }

    public String getName() {
        return name;
    }

    public Users setName(String name) {
        this.name = name;
        return this;
    }

    public String getEmail() {
        return email;
    }

    public Users setEmail(String email) {
        this.email = email;
        return this;
    }

    public String getPasswd() {
        return passwd;
    }

    public Users setPasswd(String passwd) {
        this.passwd = passwd;
        return this;
    }
}
